<?php 
    if(isset($news) && count($news) > 0): foreach($news as $index => $new):
        $uri = get_base_url() . url_title(trim($new->category), 'dash', TRUE) . '/' . url_title(trim($new->title), 'dash', TRUE) . '-n' . $new->cat_id . '-' . $new->id;
        $thumbnail = ($new->thumbnail != '') ? $new->thumbnail : '/images/noimage.jpg';
    ?>
<?php if($index == 0):?>
<li class="sp2">
    <div class="special_1">
        <div class="img_td">
            <img src="/images/td.jpg">
        </div>
        <div class="nd_td">
            <h2 class="special_2">
                <a href="<?php echo $uri;?>" class="special_3"><?php echo $new->title;?></a>
            </h2>
            <a href="<?php echo $uri;?>" class="special_4"><img src="<?php echo $thumbnail;?>" class="special_5" alt="<?php echo $new->title;?>" title="<?php echo $new->title;?>"></a>
            <p class="special_6">
                <?php echo shorten_str($new->summary, MAXLENGHT_TOP_NEWS_DESCRIPTION);?>
            </p>
        </div>

    </div> <!-- /special_1 -->
</li>
<?php else:?>
<li class="sp3">
    <div class="special_02">
        <div class="sp_02">
            <h2 class="special_2 ma_0">
                <a href="<?php echo $uri;?>" class="special_3"><?php echo $new->title;?></a>
            </h2>
            <a href="<?php echo $uri;?>" class="special_4"><img src="<?php echo $thumbnail;?>" class="special_5" alt="<?php echo $new->title;?>" title="<?php echo $new->title;?>"></a>
            <p class="special_6">
                <?php echo shorten_str($new->summary, MAXLENGHT_TOP_NEWS_DESCRIPTION);?>
            </p>
        </div>

    </div> <!-- /special_02 -->
</li>

<?php endif; endforeach; endif;?>